package com.yeskery.transfer.handler;

import com.yeskery.transfer.core.Result;
import org.springframework.shell.ResultHandler;
import org.springframework.stereotype.Component;

/**
 * 通用的消息返回处理对象
 * @author shuangjiang.du
 * @date 2018-12-13 15:35
 * @version 1.0
 */
@Component
public class StringResultHandler implements ResultHandler<Result> {
	@Override
	public void handleResult(Result result) {
		System.out.println(result.output());
	}
}
